package com.xhdx.pattern.filter;

import java.util.List;
import java.util.stream.Collectors;

public class GirlFilter implements IFilter {

    @Override
    public List<Student> filter(List<Student> student) {
        return student.stream().filter(stu -> stu.getGender().equals("女")).
                collect(Collectors.toList());
    }
}
